<BR />
<DIV ID="erreur"></DIV>

<link rel="alternate" type="application/rss+xml" title="RSS" href="rss/agenda-rss.xml" />
<?
if (isset($_GET['rss'])){
  echo "<DIV ID='evenementUnique'></DIV>";
}else{
?>
<TABLE WIDTH="100%">
	<TR>
		<TD align="center">Evenements à venir :  <HR/></TD>
	</TR>
</TABLE>
<DIV ID="evenementsAVenir"></DIV>

<TABLE WIDTH="100%">
	<TR>
		<TD align="center">Evenements passés :  <HR/></TD>
	</TR>
</TABLE>
<DIV ID="evenementsPasses"></DIV>
<?
}
?>
<script type="text/javascript" src="include/frameworks/thickbox.js"></script>
<script type="text/javascript" src="include/frameworks/facebox.js"></script>
<script type="text/javascript" src="include/illustrations.js"></script>
<?
  echo "<script type='text/javascript' src='http://maps.google.com/maps?file=api&v=2&key=".$keyGoogleMaps."&sensor=false'></script>";
?>
<style type="text/css" media="all">@import "css/thickbox.css";</style>
<style type="text/css" media="all">@import "css/facebox/facebox.css";</style>


<?

$register = 0;
if (session_is_registered('login')){
  $register = 1;
}

if($register == 1) { 
	echo "<TABLE width='100%'><TD align='center'><A HREF='index.php?page=update_event' class='blanc'>Ajouter un événement</A></TD></TABLE>";
} else { 
	echo "<TABLE width='100%'><TD align='center'><B>Pour proposer un événement, écrivez à <IMG SRC='images/mail.gif'></B></TD></TABLE>";
}
echo "<a href='rss/agenda-rss.xml' target='_blank'><IMG src='images/rss.png' /></a>"; 
echo "\n<script language='Javascript'>\n";
echo "setRegisterSession(".$register.");\n";
if (isset($_GET['rss'])){
  echo "getEvenement('".$_GET['id']."');\n";
}else{
  echo "getEvenementsAVenir();\n";
  echo "getEvenementsPasses(false);\n";
}
//echo "initFaceBox();";
echo "</script>";

?>

